package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.pojo.Member;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface MemberService {



    Member findByTelephone(String telephone);

    public void add(Member member);

    List<Integer> findMemberCountByMonth(List<String> list);

    //分页查询会员信息
    public PageResult findPageMember(Integer currentPage, Integer pageSize, String queryString);

    //添加会员信息
    public void addMember(Member member);

    //根据ID查询会员信息
    public Member findMemberById(Integer id);

    //根据ID修改会员信息
    public void updateMemberById(Member member);

    //根据会员ID删除会员信息
    public void deleteMemberById(Integer id);

    List<Member> findAll();

    List<User> findUser();

    //编辑会员信息
    void editMemberInfo(Member memberInfo);

    //获取当前用户的预约信息
    List<Map<String, Object>> findMemberOrderInfo(String startTime, String endTime,Integer memberId);

    //获取当前用户的预约详情
    Map<String, Object> findMemberOrderDetail(Integer orderId);
}
